﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace car_o_matic
{
    [Serializable]
    class Car : Vehicle
    {
        //is true if data needs to be transmitted to vehicle
        public bool needsTX { get; set; }

        public string name { get; set; }
        public int address { get; set; }
        public int speed { get; set; }
        public bool stop { get; set; }
        public string description { get; set; }
        public Image image { get; set; }


        public List<bool> functions { get; set; }

        public Car()
        {
            functions = new List<bool>();
            functions.Add(false);
            functions.Add(false);
            functions.Add(false);
            functions.Add(false);
        }

        public string ToString()
        {
            return "Car: " + name;
        }
    }
}
